<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{:$i->title}</title>
<link href="{:$smarty.const.PUBLIC_DIR}/common/style/admin.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.action,a.action:link,a.action:visited,a.action:hover{ font-weight:normal;}
a.dir:link,a.dir:visited{ text-decoration:none; font-weight:bold; color:#000;}
a.dir:hover{ text-decoration:underline; font-weight:bold; color:#F00;}
</style>
</head>
<body>
<div class="wrapper">
  <div class="title shadow titleBg">
    <table width="100%" border="0" cellspacing="1">
      <tr>
        <td><h1> {:$i->title} </h1></td>
      </tr>
    </table>
  </div>  
  <div class="content shadow">
    <table width="100%" border="0" cellspacing="1">
      <tr class="titleBg">
        <th scope="col" class="textL action">{:if $i->param.dir != ''}【<a href="{:$smarty.const.BOOT_URL}/{:$i->c}/{:$i->m}?dir={:$i->param.dir|@dirname}">↑上级目录</a>】{:else}【上级目录】{:/if}【/{:$i->param.dir}】</th>
      </tr>
      {:foreach item=item from=$i->lists}
      <tr>
      {:if $item.type == 'dir'}
        <td class="textL">【目录】<a class="dir" href="?dir={:$i->param.dir}/{:$item.name}">{:$item.name}</a></td>
       {:else}
        <td class="textL">〖文件〗<a href="javascript:openFile('{:$i->param.urlPrefix}/{:$i->param.dir}/{:$item.name}');">{:$item.name}</a></td>
        {:/if}
      </tr>
      {:/foreach}       
      <tr>
        <td class="lightGreyBg textL">{:$i->pagesCode}</td>
      </tr>
    </table>
  </div>
</div>
<script language="javascript" type="text/javascript">
function openFile( fileUrl )
{
	window.top.opener.SetUrl( encodeURI( fileUrl ).replace( '#', '%23' ) ) ;
	window.top.close() ;
	window.top.opener.focus();
	return false;
}
</script>
</body>
</html>
